function basePath(){
    //获取当前网址，如： http://localhost:8080/ems/Pages/Basic/Person.jsp
    var curWwwPath = window.document.location.href;
    //获取主机地址之后的目录，如： /ems/Pages/Basic/Person.jsp
    var pathName = window.document.location.pathname;
    var pos = curWwwPath.indexOf(pathName);
    //获取主机地址，如： http://localhost:8080
    var localhostPath = curWwwPath.substring(0, pos);
    //获取带"/"的项目名，如：/ems
    var projectName = pathName.substring(0, pathName.substr(1).indexOf('/') + 1);
    //获取项目的basePath   http://localhost:8080/ems/
    var basePath=localhostPath+projectName+"/";
    return basePath;
};
//提示加预估
var t1 = '<div style="background:#f6f6f6;">';
t1 += '<p class="tex"><span class="tb"><img src="static/H5/images/tb.png"/></span><strong>您的贷款申请已提交</strong></p>';
t1 += '<p class="tex"><span id="channel">感谢申请，以下机构会联系您，请保持电话畅通</span></p>';
t1 += '</div>'
t1 += '<div style="background:#f6f6f6; padding:0 2%;" class="result clearfix">'
t1 += '<ul style="margin:0 auto;" id="app"></ul></div>'


function ygshow(housingFund, car, house, mon) {

	var data = {

		pinganhui: {
			src: "static/H5/images/4_04_1.jpg",
			flag: 0,
			name: "平安集团旗下",

		},
        newloan: {
            src: "static/H5/images/newloan.jpg",
            flag: 0,
            name: "平安集团旗下",
        },
		pingandai: {
			src: "static/H5/images/4_04_2.jpg",
			flag: 0,
			name: "平安集团旗下",
		},
		hengyi: {
			src: "static/H5/images/4_04_3.jpg",
			flag: 0,
			name: "恒易贷 ",
		},
		yixing: {
			src: "static/H5/images/4_04_4.jpg",
			flag: 0,
			name: "宜信",
		},
		dongfan: {
			src: "static/H5/images/4_04_5.jpg",
			flag: 0,
			name: "东方融资",
		},
		zhudai: {
			src: "static/H5/images/4_04_6.jpg",
			flag: 0,
			name: "助贷网",
		},
		niwdai: {
			src: "static/H5/images/4_04_7.jpg",
			flag: 0,
			name: "你我贷款",
		},
		ztx: {
			src: "static/H5/images/4_04_8.jpg",
			flag: 0,
			name: "中腾信",
		},
		hbjr: {
			src: "static/H5/images/4_04_9.jpg",
			flag: 0,
			name: "厚本金融",
		}

	};


	var pinganphflag = $("#pinganphflag").val();
    var newloanflag = $("#newloanflag").val();
    var ztxflag = $("#ztxflag").val();

    if (pinganphflag==1) {
        data.pinganhui.flag = 1;
	}
    if (newloanflag==1) {
        data.newloan.flag = 1;
    }
    if (pinganphflag!=1 || newloanflag!=1) {
        if (ztxflag==1) {
            data.ztx.flag = 1;
        }
	}
	if (pinganphflag!=1 && newloanflag!=1 && ztxflag!=1) {
        $("#channel").text("");
	}



	var html = '';
	for(var item in data) {
		if(data[item].flag === 0) {
			continue;
		}
		html += "<li class='clearfix'>" +
			"<span class='fl_L'>" + "<img src='" + data[item].src + "'/>" + "</span>" +
			"</li>"
	}
	$("#app").html(html)
}

/*document.write(t1)*/






